package com.wy._04String;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.UUID;

//关于字符串的工具类
public class StrUtils {
    public static String getUuid(){
        return UUID.randomUUID().toString().replace("-", "");
    }
    public static String getCurrentDateTime() {
        SimpleDateFormat dateFormat = new SimpleDateFormat("yyyyMMddHHmmssSSS");
        Date now = new Date();
        return dateFormat.format(now);
    }
}
